<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS登录界面</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
            box-sizing: border-box;
        }

        body {

            background: url("img/register_bg.png");
        }

        .rg {
            border: 3px solid gainsboro;
            width: 800px;
            height: 500px;
            background: white;
            margin-left: 400px;
            margin-top: 140px;

        }

        .rg_center {
            margin-top: 50px;
            float: left;
            margin-left: 50px;
        }

        .rg_left {

            float: left;
            margin-left: 20px;
            margin-top: 25px;
        }

        .rg_right {

            float: right;
            margin-right: 10px;
            margin-top: 25px;
        }

        .rg_left > p:first-child {
            color: yellow;
        }

        .rg_left > p:last-child {
            color: gray;
        }

        .rg_right > p:first-child {
            font-size: 15px;
        }

        .rg_right p a {
            color: pink;
        }

        .td_left {
            text-align: right;
            width: 100px;
            height: 40px;
        }

        .td_right {
            padding-left: 60px;
        }

        #username, #password, #birthday, #checkcode, #Email, #name, #tel {
            width: 230px;
            height: 30px;
            border-radius: 5px;
            border: 1px solid gray;
            padding-left: 15px;
        }

        #checkcode {
            width: 100px;
        }

        #imgage {
            width: 100px;
            height: 25px;
            vertical-align: middle;
        }

        #rg {
            border: 1px solid yellow;
            width: 100px;
            height: 35px;
            background: yellow;
        }

    </style>
</head>
<body>
<div class="rg">
    <div class="rg_left">
        <p>新用户注册</p>
        <p>USER REGISTER</p>
    </div>
    <div class="rg_center">
        <form action="#" method="post">
            <table>
                <tr>
                    <td class="td_left">
                        <lab for="username">用户名</lab>
                    </td>
                    <td class="td_right"><input type="text" name="username" id="username" placeholder="请输入用户名"></td>
                </tr>
                <tr>
                    <td class="td_left">
                        <lab for="passwor">密码</lab>
                    </td>
                    <td class="td_right"><input type="password" name="password" id="password" placeholder="请输入密码"></td>
                </tr>
                <tr>
                    <td class="td_left">
                        <lab for="Email">Email</lab>
                    </td>
                    <td class="td_right"><input type="Email" name="Email" id="Email" placeholder="请输入邮箱地址"></td>
                </tr>
                <tr>
                    <td class="td_left">
                        <lab for="name">姓名</lab>
                    </td>
                    <td class="td_right"><input type="email" name="name" id="name" placeholder="请输入姓名"></td>
                </tr>
                <tr>
                    <td class="td_left">
                        <lab for="tel">手机号</lab>
                    </td>
                    <td class="td_right"><input type="text" name="tel" id="tel" placeholder="请输入手机号"></td>
                </tr>
                <tr>
                    <td class="td_left">性别</td>
                    <td class="td_right"><input type="radio" name="gender" value="male" placeholder="请输入性别">男
                        <input type="radio" name="gender" value=female placeholder="请输入性别">女
                    </td>
                </tr>
                <tr>
                    <td class="td_left">
                        <lab for="birthday">出生日期</lab>
                    </td>
                    <td class="td_right"><input type="date" name="birthday" id="birthday" placeholder="请输入出生日期"></td>
                </tr>
                <tr>
                    <td class="td_left">
                        <lab for="checkcode">验证码</lab>
                    </td>
                    <td class="td_right"><input type="text" name="checkcode" id="checkcode" placeholder="请输入验证码">
                        <img src="img/verify_code.jpg" id="imgage"/></td>

                </tr>
                <tr>
                    <td colspan="2" align="center"><input type="submit" value="注册" id="rg"></td>
                </tr>

            </table>
        </form>
    </div>
    <div class="rg_right">
        <p>已有账号？<a href="#">立即登录</a></p>
    </div>

</div>
</body>
</html>